package com.eb.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String nickname;     //用户昵称
    private String  password;   //密码
    private String  image;      //用户头像
    private Integer      sex;         //性别   0 女 1男
    private Integer   experience;       //经验总量
    private Integer level  ;           //等级
    private Integer  status;          //状态  0禁用    1启用
    private Integer permission ;      //权限  0用户 1管理员
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;   // 创建时间

}
